<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
  <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>XX系统 - 房屋信息添加</title>
	<link rel="stylesheet" href="../../css/main.css">
	<link rel="stylesheet" href="../../lib/font-awesome/css/font-awesome.css">
</head>
<style>
	#mess{
	color:red;
	}
</style>
<body>
<div class="box">
	<h3>添加房屋信息</h3>
	<form action="${pageContext.request.contextPath}/addHouseServlet" method="post" enctype="multipart/form-data">
	<span id="mess">${mess }</span>

	<table class="form-table">
		<tr>
			<td>地区</td>
			<td colspan="3" class="control">
				<!-- <input type="text" name="h_area" placeholder="填写地区"> -->
				<select name="h_area">
					<option value="中原区">中原区</option>
					<option  value="金水区" selected>金水区</option>
					<option value="经开区">经开区</option>
					<option value="二七区">二七区</option>
					<option value="高新区">高新区</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>小区名字</td>
			<td colspan="3" class="control">
				<input type="text" name="h_estate" placeholder="小区名字">
			</td>
		</tr>
		<tr>
			<td>单元号</td>
			<td colspan="3" class="control">
				<input type="text" name="h_unitNumber" placeholder="单元号">
			</td>
		</tr>
		<tr>
			<td>楼层</td>
			<td colspan="3" class="control">
				<input type="text" name="h_floor" placeholder="楼层">
			</td>
		</tr>
		<tr>
			<td>房间号</td>
			<td colspan="3" class="control">
				<input type="text" name="h_roomNo" placeholder="房间号">
			</td>
		</tr>
		<tr>
			<td>面积（平米）</td>
			<td colspan="3" class="control">
				<input type="text" name="h_acreage" placeholder="面积">
			</td>
		</tr>
		<tr>
			<td>朝向</td>
			<td colspan="3" class="control">
				<input type="radio" name="h_direction" value="南北通透" checked>南北
				<input type="radio" name="h_direction" value="东西开放">东西
			</td>
		</tr>
		<tr>
			<td>装修</td>
			<td colspan="3" class="control">
				<!-- <input type="text" name="h_fitment" placeholder="装修"> -->
				<select name="h_fitment">
					<option value="精装修">精装修</option>
					<option value="简装修" selected>简装</option>
					<option value="毛坯房">毛坯房</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>是否双气</td>
			<td colspan="3" class="control">
				<!-- <input type="text" name="h_isDoubleAir" placeholder="是否双气"> -->
					<input type="radio" name="h_isDoubleAir" placeholder="是否双气" value="1" checked>是
					<input type="radio" name="h_isDoubleAir" placeholder="是否双气" value="0">否
			</td>
		</tr>
		<tr>
			<td>限住人数</td>
			<td colspan="3" class="control">
				<input type="text" name="h_limit" placeholder="限住人数">
			</td>
		</tr>
		<tr>
			<td>配套设施</td>
			<td colspan="3" class="control">
				<!-- <input type="text" name="h_facility" placeholder="配套设施"> -->
				<input type="checkbox" name="h_facility" value="WIFI">WIFI
				<input type="checkbox" name="h_facility" value="家具齐全">家具齐全
				<input type="checkbox" name="h_facility" value="空调">空调
				<input type="checkbox" name="h_facility" value="冰箱">冰箱
			</td>
		</tr>
		<tr>
			<td>出租价格（元/月）</td>
			<td colspan="3" class="control">
				<input type="text" name="h_price" placeholder="">
			</td>
		</tr>
		<tr>
			<td>出租状态</td>
			<td colspan="3" class="control">
				<select name="h_status">
					<option value="1">已出租</option>
					<option  value="2" selected>未出租</option>
					<option value="3">停止出租</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>房屋图片</td>
			<td colspan="3" class="control">
				<input type="file" name="h_img" placeholder="">
			</td>
		</tr>
		<tr>
			<td>完整地址信息</td>
			<td colspan="3" class="control">
				<input type="text" name="h_address" placeholder="完整地址信息">
			</td>
		</tr> 
		
	</table>
	<div class="buttons">
		<input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
		<a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
	</div>
	</form>
		<c:remove var="mess" scope="session"/>
</div>
</body>
</html>